projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
706eb2d
)
(save_excursion_restore): Don't use XBUFFER on
author
Gerd Moellmann
<gerd@gnu.org>
Thu, 26 Apr 2001 12:37:03 +0000
(12:37 +0000)
committer
Gerd Moellmann
<gerd@gnu.org>
Thu, 26 Apr 2001 12:37:03 +0000
(12:37 +0000)
a non-buffer.
src/editfns.c
patch
|
blob
|
history
diff --git
a/src/editfns.c
b/src/editfns.c
index 2c443ca5d240df63acbad0ec7b2fa1e56f501e95..e50ef45ec0af537f1b48508d1b9ebec1cffd2b5b 100644
(file)
--- a/
src/editfns.c
+++ b/
src/editfns.c
@@
-848,8
+848,11
@@
save_excursion_restore (info)
tem = XCDR (info);
if (visible_p
&& !EQ (tem, selected_window)
- /* This also verifies that the window is still live. */
- && XBUFFER (XWINDOW (tem)->buffer) == current_buffer)
+ && (tem1 = XWINDOW (tem)->buffer,
+ (/* Window is live... */
+ BUFFERP (tem1)
+ /* ...and it shows the current buffer. */
+ && XBUFFER (tem1) == current_buffer)))
Fset_window_point (tem, make_number (PT));
UNGCPRO;